import http from "@/utils/http";
import {EnumAlias} from "@/utils/common";

export function dataPrivilegeRulePage(params?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_SYS}/dataPrivilegeRule/page`,
    method: "get",
    params
  });
}

export function dataPrivilegeRuleList(params?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_SYS}/dataPrivilegeRule/list`,
    method: "get",
    params
  });
}

export function dataPrivilegeRuleAdd(data?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_SYS}/dataPrivilegeRule/create`,
    method: "post",
    data
  });
}

export function dataPrivilegeRuleUpdate(data?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_SYS}/dataPrivilegeRule/update`,
    method: "post",
    data
  });
}

export function dataPrivilegeRuleDetail(params?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_SYS}/dataPrivilegeRule/detail`,
    method: "get",
    params
  });
}

export function dataPrivilegeRuleDelete(data?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_SYS}/dataPrivilegeRule/delete`,
    method: "post",
    data
  });
}
